package cc.bukkitPlugin.banitem.command;

import java.util.ArrayList;

import org.bukkit.command.CommandSender;

import cc.bukkitPlugin.banitem.BanItemEnume.OperateType;
import cc.bukkitPlugin.banitem.CFG;
import cc.bukkitPlugin.banitem.command.analyse.ParamReason;

public class CommandTest extends ACommandListOp{

    public CommandTest(CommandExc pExector){
        super(pExector,OperateType.TEST);
        this.registerParam(ParamReason.class);
    }

    @Override
    public ArrayList<String> getHelp(CommandSender pSender,String pLabel){
        ArrayList<String> helps=new ArrayList<>();
        if(pSender.hasPermission(this.mPluginName+".item.test")){
            helps.add(CFG.cmd_color+this.mMainCmdLabel+" test [参数:值]...");
            helps.add(CFG.help_color+"可选的参数: "+this.getAllowParam());
            helps.add(CFG.help_color+"检查命令物品配置项符合指定物品列表具体的哪条配置");
        }
        return helps;
    }

}
